
import App from './App.vue'
import { createApp } from 'vue'
//passive
import "default-passive-events"
// 引入pinia
import store from './store'
// 引入路由
import router from './router'
// 引入unocss
// import 'uno.css'

// 引入VForm3
import VForm3 from '@/../lib/vform/designer.umd.js'
import '@/../lib/vform/designer.style.css'

// svg图标
import 'virtual:svg-icons-register'
import ElementIcons from '@/components/SvgIcon/svgicon.js'

// vxe-table表格
import VxeTablePlugins from '@/plugins/vxe-table-plugins'
import 'vxe-table/lib/style.css'

// 引入全局组件配置
import { setupComponents } from '@/components/index.js'

// 引入全局工作流
import ProcessDesigner from './package/index.js';
import './package/theme/index.scss';

// 全局引入ElementPlus
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import '@/styles/theme/index.scss'
import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'

// 引入样式
import '@/styles/index.scss'

// 收支预算计算
import BigNumber from 'bignumber.js'
// import '@/utils/common/Decimal.js'
// import '@/utils/common/DebtUtil.js'

// 路由拦截
import '@/router/permission'

const app = createApp(App)
// 添加ElementPlus
app.use(ElementPlus, { size: 'default', locale: zhCn })
// 添加ElementPlus图标
app.use(ElementIcons)
// 添加vxe-table
app.use(VxeTablePlugins)
// 配置工作流
app.use(ProcessDesigner)
//计算精度
app.use(BigNumber)
// 设置pinia配置
app.use(store)
// 设置路由配置
app.use(router)
// 设置全局组件
setupComponents(app)
// 添加VForm表单设计器
app.use(VForm3)
// 挂载节点
app.mount('#app')
